<template>
  <div class="full-page">
    <router-view></router-view>
    <tab-bar></tab-bar>
  </div>
</template>

<script>
import TabBar from "../components/tab-bar.vue";
import store from "../store";
export default {
  components: {
    TabBar,
  },
  created() {
    // 登录状态为true，还需要验证。
    if (store.state.user.isLogin) {
      store.dispatch("user/checkLoginAction");
    }
  },
};
</script>